require('babel-polyfill');

import { render } from 'react-dom';
import React from 'react';

import { ReduxRouter } from 'redux-router';
import { Provider } from 'react-redux';
import configureStore from '../redux/stores/appStore';

// Redux DevTools
import DevTools from '../redux/containers/DevTools';

import injectTapEventPlugin from 'react-tap-event-plugin';

// Needed for onTouchTap
// Can go away when react 1.0 release
// Check this repo:
// https://github.com/zilverline/react-tap-event-plugin
injectTapEventPlugin();

const store = configureStore();

render(
	<Provider store={store}>
		<div>
			<ReduxRouter />
			{__DEV__ && __DEVTOOLS__ && <DevTools />}
		</div>
	</Provider>
, document.querySelector('#app'));